import http from '@/utils/http';

export const postMemberAddress = (data) => {
    return http({ url: '/member/address', method: 'post', data });
};

export const getMemberAddress = (data) => {
    return http({ url: '/member/address' });
};

export const getMemberAddressDetail = (id) => {
    return http({ url: '/member/address/' + id });
};

export const putMemberAddressId = (id, data) => {
    return http({ url: '/member/address/' + id, method: 'put', data })
}

export const deleteMemberAddressId = (id) => {
    return http({ url: '/member/address/' + id, method: 'delete' });
};